package org.peoplesearch.vk.processor;

import org.peoplesearch.conf.VKConf;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Queue;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;


public class VkCommandCounting implements Runnable{

    private VkCommand command;
    private int priority;
    private final Queue<VkCommandCounting> queue;

    static Logger logger = LoggerFactory.getLogger(VkCommandCounting.class);

    public VkCommandCounting(VkCommand command, int priority, final Queue<VkCommandCounting> queue) {
        this.command = command;
        this.priority = priority;
        this.queue = queue;
    }

    public void run() {
        command.run();
        synchronized (queue) {
            queue.notifyAll();
        }
    }

}
